<%@ page contentType="text/html;charset=utf-8" errorPage="../error.jsp"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@ page import="java.util.ArrayList"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gbk">
<LINK href="<%=path %>/mok/forum/admin/style/admin.css" type=text/css rel=stylesheet></LINK>
<SCRIPT src="../../forum/js/common.js" type=text/javascript></SCRIPT>
<SCRIPT src="../admin/js/admin.js" type=text/javascript></SCRIPT>
</HEAD>
<BODY topMargin=10>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD>
		    <A onclick="loginAdmin" href="#">后台管理首页</A>&nbsp;&raquo;&nbsp;编辑版块
		  </TD></TR></TBODY></TABLE>
      <form id="settings" name="settings"  action="forumEditDone" method="get">
      <TABLE class=info_tb cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR class=header>
          <TD colSpan=2>编辑版块</TD>
        </TR>
			<tr>
			<td class=altbg1 colSpan=2>
			    <s:actionerror cssStyle="color:red"/>
                <s:actionmessage cssStyle="color:green"/>
			</td>
			</tr>
                      <tr align=middle>
                      <td class=altbg1 width="45%">
                      <b>选择要修改的板块</b>
                        </td>
                            <td class=altbg2>
                                <select id="boardId" name="boardId">
                                        <s:iterator value="#request.boards" var="board">
                                            <option value="${board.boardId}"><s:property value="#board.boardName" /></option>
                                        </s:iterator>
                                </select>
                            </td>
                        </tr>
                            <tr align=middle>
                                <td class=altbg1 width="45%">
                                     <b>板块名称：</b>
                                </td>
                                <td class=altbg2><input size=50 id="boardName" name="boardName" /></td>
                            </tr>
                            <tr align=middle>
                                <td class=altbg1 width="45%"><b>版主名称：</b></td>
                                <td class=altbg2><input size=50 id="username" name="username" /> </td>
                            </tr>
                            <tr align=middle>
                                <td class=altbg1 width="45%"><b>是否在首页显示：</b>
                                </td>
                                <td class=altbg2>
                                    <select id="isshow" name="isshow">
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                    </select>
                                </td>
                             </tr>
                             <tr>
                             <td colSpan=2>
                               <center> <input class="button" type="submit" value="提 交" ></input></center>
                             </td>
                             </tr>
      </TBODY>
      </TABLE>
      </form>
      </TD></TR></TBODY></TABLE>
<script language="javascript">
function checkfields(theform) {
    var filter = /^\d+$/;
	for (i=0; i<theform.seqno.length; i++)
	{
	    if (!filter.test(trim(theform.seqno[i].value))) {
    		alert('显示顺序必须为整数');
      		theform.seqno[i].focus();
			return;
		}
    }
	theform.submit();
}
function deleteSection(id,name)
{
	if (confirm('您确实要删除分区"' + name + '"吗?'))
		window.location = "" + "/perform.jsp?act=forums_section_delete&sid=" + id;
}
function deleteBoard(sid,fid,name)
{
	if (confirm('您确实要删除板块"' + name + '"，同时清除其中的帖子和附件吗?\n注意：删除板块不会更新用户发帖数和积分。'))
		if (confirm('本操作不可恢复，确实要继续吗？'))
			window.location = "" + "/perform.jsp?act=forums_board_delete&fid=" + fid + "&sid=" + sid;
}
</script>		
</BODY></HTML>